﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000D45 RID: 3397
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class PNJBCMKPNEA : IMessage<PNJBCMKPNEA>, IMessage, IEquatable<PNJBCMKPNEA>, IDeepCloneable<PNJBCMKPNEA>, IBufferMessage
	{
		// Token: 0x17002B1E RID: 11038
		// (get) Token: 0x0600987A RID: 39034 RVA: 0x001979B9 File Offset: 0x00195BB9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<PNJBCMKPNEA> Parser
		{
			get
			{
				return PNJBCMKPNEA._parser;
			}
		}

		// Token: 0x17002B1F RID: 11039
		// (get) Token: 0x0600987B RID: 39035 RVA: 0x001979C0 File Offset: 0x00195BC0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return PNJBCMKPNEAReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17002B20 RID: 11040
		// (get) Token: 0x0600987C RID: 39036 RVA: 0x001979D2 File Offset: 0x00195BD2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return PNJBCMKPNEA.Descriptor;
			}
		}

		// Token: 0x0600987D RID: 39037 RVA: 0x001979D9 File Offset: 0x00195BD9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PNJBCMKPNEA()
		{
		}

		// Token: 0x0600987E RID: 39038 RVA: 0x001979E1 File Offset: 0x00195BE1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PNJBCMKPNEA(PNJBCMKPNEA other) : this()
		{
			this.id_ = other.id_;
			this.avatarType_ = other.avatarType_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600987F RID: 39039 RVA: 0x00197A12 File Offset: 0x00195C12
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PNJBCMKPNEA Clone()
		{
			return new PNJBCMKPNEA(this);
		}

		// Token: 0x17002B21 RID: 11041
		// (get) Token: 0x06009880 RID: 39040 RVA: 0x00197A1A File Offset: 0x00195C1A
		// (set) Token: 0x06009881 RID: 39041 RVA: 0x00197A22 File Offset: 0x00195C22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x17002B22 RID: 11042
		// (get) Token: 0x06009882 RID: 39042 RVA: 0x00197A2B File Offset: 0x00195C2B
		// (set) Token: 0x06009883 RID: 39043 RVA: 0x00197A33 File Offset: 0x00195C33
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public AvatarType AvatarType
		{
			get
			{
				return this.avatarType_;
			}
			set
			{
				this.avatarType_ = value;
			}
		}

		// Token: 0x06009884 RID: 39044 RVA: 0x00197A3C File Offset: 0x00195C3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as PNJBCMKPNEA);
		}

		// Token: 0x06009885 RID: 39045 RVA: 0x00197A4A File Offset: 0x00195C4A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(PNJBCMKPNEA other)
		{
			return other != null && (other == this || (this.Id == other.Id && this.AvatarType == other.AvatarType && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06009886 RID: 39046 RVA: 0x00197A88 File Offset: 0x00195C88
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this.AvatarType != AvatarType.None)
			{
				num ^= this.AvatarType.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06009887 RID: 39047 RVA: 0x00197AE6 File Offset: 0x00195CE6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06009888 RID: 39048 RVA: 0x00197AEE File Offset: 0x00195CEE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06009889 RID: 39049 RVA: 0x00197AF8 File Offset: 0x00195CF8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Id != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Id);
			}
			if (this.AvatarType != AvatarType.None)
			{
				output.WriteRawTag(48);
				output.WriteEnum((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600988A RID: 39050 RVA: 0x00197B54 File Offset: 0x00195D54
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this.AvatarType != AvatarType.None)
			{
				num += 1 + CodedOutputStream.ComputeEnumSize((int)this.AvatarType);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600988B RID: 39051 RVA: 0x00197BAC File Offset: 0x00195DAC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(PNJBCMKPNEA other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			if (other.AvatarType != AvatarType.None)
			{
				this.AvatarType = other.AvatarType;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600988C RID: 39052 RVA: 0x00197BFC File Offset: 0x00195DFC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600988D RID: 39053 RVA: 0x00197C08 File Offset: 0x00195E08
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.AvatarType = (AvatarType)input.ReadEnum();
					}
				}
				else
				{
					this.Id = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04003AB5 RID: 15029
		private static readonly MessageParser<PNJBCMKPNEA> _parser = new MessageParser<PNJBCMKPNEA>(() => new PNJBCMKPNEA());

		// Token: 0x04003AB6 RID: 15030
		private UnknownFieldSet _unknownFields;

		// Token: 0x04003AB7 RID: 15031
		public const int IdFieldNumber = 2;

		// Token: 0x04003AB8 RID: 15032
		private uint id_;

		// Token: 0x04003AB9 RID: 15033
		public const int AvatarTypeFieldNumber = 6;

		// Token: 0x04003ABA RID: 15034
		private AvatarType avatarType_;
	}
}
